import Layout from '@/layout'

export default {
  path: '/stores',
  name: 'stores',
  component: Layout,
  meta: {
    title: '店铺管理',
    icon: 'tree'
  },
  children: [
    {
      path: '',
      name: 'category',
      component: () => import('@/views/stores/store-list'),
      meta: {
        title: '店铺列表',
        icon: 'tree'
      }
    },
    {
      path: 'details/:storeId',
      name: 'storeDetail',
      component: () =>
        import('@/views/stores/store-list/components/store-detail'),
      props: true,
      hidden: true
    },
    {
      path: 'salesAnalyze/:storeId',
      name: 'salesAnalyze',
      component: () =>
        import('@/views/stores/store-list/components/store-analyze'),
      props: true,
      hidden: true
    },
    {
      path: 'goods',
      name: 'goodsList',
      component: () => import('@/views/stores/goods-list'),
      meta: {
        title: '商品列表',
        icon: 'tree'
      }
    },
    {
      path: 'approve',
      name: 'approve',
      component: () => import('@/views/stores/approve'),
      meta: {
        title: '开店审核',
        icon: 'tree'
      }
    },
    {
      path: 'storeAudit/:storeId',
      name: 'storeAudit',
      component: () => import('@/views/stores/approve/components/store-audit'),
      props: true,
      hidden: true
    },
    {
      path: 'right',
      name: 'right',
      component: () => import('@/views/stores/right-store'),
      meta: {
        title: '店铺权益管理',
        icon: 'tree'
      }
    },
    {
      path: 'trade',
      name: 'trade',
      component: () => import('@/views/stores/trade-store'),
      meta: {
        title: '店铺行业管理',
        icon: 'tree'
      }
    },
    {
      path: 'category',
      name: 'category',
      component: () => import('@/views/stores/category'),
      meta: {
        title: '商品类别管理',
        icon: 'tree'
      }
    },
    {
      path: 'category/son/:id',
      hidden: true,
      name: 'categorySon',
      component: () => import('@/views/stores/category/categoryson')
    }
  ]
}
